﻿namespace DCHealthCheck.MvcWeb.Classes.ViewModels {

    #region Usings
    using DCHealthCheck.Common;
    using DCHealthCheck.DomainModel;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Text;
    using System.Threading;
    using System.Web;
    using System.Web.Caching;
    using System.Web.Mvc; 
    #endregion

    public class NetstatInfoViewModel : BaseViewModel {

        #region Members
        public List<NetstatInfo> NetstatInfos { get; set; } 
        #endregion

        #region Constructor
        public NetstatInfoViewModel() {
            this.NetstatInfos = new List<NetstatInfo>();
        } 
        #endregion

        #region Methods
        public override void Initialize(){
            Global.DefaultLog.DebugFormat("[ThreadId: {0}] {1}", Thread.CurrentThread.ManagedThreadId, Extensions.CurrentMethodName());

            base.Initialize();
            this.TakeCount = 15;
            this.DisplayDownloadLink = true;

            if (string.IsNullOrWhiteSpace(this.SortColumn)) {
                this.SortColumn = "SystemInfo.DomainController.SamAccountName";
            }

            if (this.ProcessExecutable == null) this.ProcessExecutable = string.Empty;
        } 
        #endregion
    }
}